package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.StrategyCommentQueryObject;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCommentService {

    void save(StrategyComment strategyComment);

    void delete(String id);

    void update(StrategyComment strategyComment);

    StrategyComment find(String id);

    List<StrategyComment> findAll();

    void addComment(StrategyComment strategyComment, UserInfo userInfo);

    /**
     * 根据qo查询分页信息
     * @param qo
     * @return
     */
    Page query(StrategyCommentQueryObject qo);

    /**
     * 根据cid查询评论对象,判断是否存在当前用户
     * @param cid
     * @param userInfo
     */
    void commentThumb(String cid, UserInfo userInfo);


}
